package ex4.logic;

/**
 * 
 * @author Yuvik
 * represents a Preadtor snake 
 */
public class Preadtor extends Snake{

	public Preadtor(int speed){
		
		this._length=5;
		this._score=0;
		this._speed=speed;
		this._fuzzy=false;
		this._snakeType=Configuration.PREDATOR;
		this._imageName="PredatorSnake.png";	
		this._SnakeTypeName="Preadtor";
	}
	
	@Override
	public void eat(Food food) {
		food.accept(this);		
	}

	@Override
	public void visit(IceCream food) {

		this._fuzzy=true;
	}

	@Override
	public void visit(Insect food) {
		this._length=this._length+1;
		this._score=this._score+10;
		
	}

	@Override
	public void visit(Meat food) {
		
		this._length=this._length+2;
		this._score=this._score+20;
	}

}
